import request from "@/utils/request";

export const reqGetAttrList = ({ category1Id, category2Id, category3Id }) => {
  return request({
    method: "GET",
    url: `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  });
};
export const reqAddAttrInfo = data => {
  return request({
    method: "POST",
    url: `/admin/product/saveAttrInfo`,
    data
  });
};
export const reqDelAttr = attrId => {
  return request({
    method: "DELETE",
    url: `/admin/product/deleteAttr/${attrId}`
  });
};
